/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package jqphpgenerator;

import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Oscar Salazar
 */
public class Ip {
    
    public String getIp(){
        String ipAddress=null;
        try {
            InetAddress addr = InetAddress.getLocalHost();
            ipAddress = addr.getHostAddress();
        } catch (UnknownHostException ex) {
            Logger.getLogger(Ip.class.getName()).log(Level.SEVERE, null, ex);
        }
        return ipAddress;
    }
    
}
